'use strict';

/**
 * @type {*}
 */

let StringUtil = require('../../util/StringUtil');
let baseService = require('../BaseService');
const URI = {
    HISTORY: '/users',
    HISTORY_EXPORT:'/asset/downloadFile',//历史开关时间Excel导出
    GET_CHAR:'/asset/statisticUtilization',//历史开关时间图表数据
};

/**
 * 获取-历史开关时间列表
 * @param thiz
 * @returns {Promise}
 */
module.exports.getTimeList = function (thiz, params) {
    return baseService.get(thiz, URI.HISTORY, params);
};
//历史开关时间列表Excel导出
module.exports.getHistoryTimeExport  = function (thiz,params) {
    return baseService.get(thiz,URI.HISTORY_EXPORT, params);
};
/** 历史开关时间图表数据*/
module.exports.getChar  = function (thiz, params) {
    return baseService.get(thiz, URI.GET_CHAR, params);
};
